import yaml


def load_yaml(path):
    file = open(path,'r',encoding='utf-8')
    data = yaml.load(file,Loader=yaml.FullLoader)
    return data

if __name__ == '__main__':
    # 相对路径
    content = load_yaml('../data/username.yaml')
    print(content)




